//class for the player
//holds values for movement speed, health, and ammo
#pragma once

#include "Definitions.h"

class Player
{
public:
	//function prototypes for drawing the player sprites 
	bool initSprites(void); //initialize player sprite
	void drawSprite(); //rendering/drawing the hero sprite

	//function prototypes for drawing the health sprites for the player
	bool initHealth(); //initialize health sprite
	void drawHealth(); //draw the health sprites

	//get input from main
	int getInput(int);

private:

	//flag to change frames based in key press
	int cas;//to be placed into the player class
	IDirect3DSurface9* spriteSurface;//holds the background surface for the character
	IDirect3DSurface9* health; //holds the background surface for the health

	RECT srcRect, destRect; // holds the location of this sprite in the source bitmap

	float posX; // the sprites X position
	float posY;	// the sprites Y position

	// movement
	float moveX; // movement in the X direction 
	float moveY; // movement in the Y direction

	// animation
	int numFrames; // number of frames this animation has			
	int curFrame; // the current frame of animation	

	dxManager *dxPMgr; //dxManager for player

};
